package com.wsse.common.entity;

public class Message {
    /**
     * 成功
     */
    public static final int STATUS_SUCCESS = 0;
    /**
     * 失败
     */
    public static final int STATUS_FAILED = 1;

    private int status;//1,失败,0成功
    private String url;//携带请求地址
    private String msg;//携带消息
    private Object data;//携带数据

    public Message() {

    }

    public Message(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Message(int status, String url, String msg) {
        this.status = status;
        this.url = url;
        this.msg = msg;
    }

    public Message(int status, Object data) {
        this.status = status;
        this.data = data;
    }

    public Message(int status, Object data, String msg) {
        this.status = status;
        this.data = data;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
